#include "student.h"
#include <QtDebug>
Student::Student(QObject *parent) : QObject(parent)
{

}

void Student::treat(QString foodName)
{
    qDebug()<<"请李景奥吃"<<foodName.toUtf8().data();
//如果需要控制台打印不带引号,需要将QString转换成char *
}
